﻿#include "samplesys.h"
#include "../base/sys_config.h"
#include "../base/sys_logger.h"
#include <iostream>

int main()
{
	SysConfig::getInst()->init("sample.conf");
	std::string cfgDir = SysConfig::getInst()->getLogDir();
	SysLogger::getInst()->init(cfgDir);
	SampleSys *smapleSys = new SampleSys();
	smapleSys->init();
	smapleSys->mainLoop();
	smapleSys->unInit();

	SysLogger::getInst()->unInit();
	SysConfig::getInst()->unInit();
	return 0;
}
